﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Http;
using Ninject;
using Example.Base;
using Ninject.Web.Common;
using System.Reflection;
using System.Web.Optimization;
using System.Web.Http.Description;
using Example.Base.Entities;
using System.Xml.Serialization;
using System.Data.Entity;

namespace Example.Site
{
    public class MvcApplication : HttpApplication
    {               
        protected void Application_Start()
        {
            GlobalConfiguration.Configuration.Services.Replace(typeof(IDocumentationProvider), new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/Example.Site.xml")));
            MvcHandler.DisableMvcResponseHeader = true;
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);            
        }
    }
}
